package user.main;

import java.io.BufferedReader;
import java.io.InputStreamReader;

import outputviewer.ObserveOutput;
import user.data.Data;

import filewriting.FitnessViewWriter;
import filewriting.PathDisplayWriter;

/**
 * Run this to display all created tracking data.
 * 
 * @author Trevor Terris
 *
 */
public class RunViewAll 
{
	public static void main(String[] args)
	{
		try
		{
			System.out.println("What directory should be used for the file?");
	    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	    	String dirName = br.readLine();
	    	ObserveOutput displayCreator = new ObserveOutput();
	    	displayCreator.CreateApplet(dirName + "/" + Data.RAW_DATA_NAME, "Done reading raw observations.");
	    	displayCreator.CreateApplet(dirName + "/" + PathDisplayWriter.TRACKED_DATA_FILENAME, 
	    			"Done reading tracked observations.");
	    	displayCreator.CreateApplet(dirName + "/" + FitnessViewWriter.FITNESS_VIEW_NAME, 
	    			"Done reading fitness view.");
	    	displayCreator.start();
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
	}
}
